home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 June
/
PCWorld_2004-06_cd.bin
/
software
/
vyzkuste
/
koolmoves
/
kmsetup.exe
/
{app}
/
Motion Scripts
/
Simple Write On
/
effect.txt
Wrap
Text File
|
2002-11-07
|
598b
|
42 lines
mcN = "letter";
waitCharEnd = 1;
loop = 0;
loopDelay = 0;
aLetters = new Array();
for (i = 0; i< numChar; i++)
{
aLetters[i+0] = i;
var letter = this[mcN +i];
letter._visible = false;
letter.init = letterInit;
letter.doEffect = effect;
letter.number = i;
}
function letterInit()
{
this._visible = false;
}
function effect()
{
this._visible = true;
this.gotoAndStop("end");
}
function shuffle()
{
return Math.floor(Math.random() * 3) -1;
}
if (random == 1)
{
aLetters.sort(shuffle);
}
if (reverse == 1)
{
aLetters.reverse();
}